package com.totoro.mybatis.sharding.service;

import com.totoro.mybatis.sharding.dao.UserDao;
import com.totoro.mybatis.sharding.domain.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Niki on 2018/8/23 18:15
 */
@Service
public class UserService {
    @Resource
    UserDao userDao;

    public User queryUserById(int id) {
        return userDao.queryById(id);
    }

}
